package com.jic.market.mapper;

import java.lang.Long;
import java.util.List;

import com.jic.market.entity.LotteryTheme;
import com.jic.market.request.manager.lottery.LotteryThemeInquireRequest;
import com.jic.market.request.manager.lottery.LotteryThemeRequest;
import com.jic.market.request.rest.lottery.LotteryThemRestRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 抽奖活动信息表
 * @author : 
 * @email : 
 * @since : 2020-03-03 03:06:48
 * @version : v1.0.0
 */
@Repository
@Mapper
public interface  LotteryThemeMapper {

    long insert(LotteryTheme lotteryTheme);

    long delete(Long id);

    long update(@Param("lotteryThemeRequest") LotteryThemeRequest lotteryThemeRequest);

    long updateStatus(@Param("lotteryThemeRequest") LotteryThemeRequest lotteryThemeRequest);

    LotteryTheme queryByPrimaryKey(Long id);

    LotteryTheme queryById(Long id);

    List<LotteryTheme> query(LotteryTheme lotteryTheme);

    List<LotteryTheme> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("lotteryThemeRequest") LotteryThemeInquireRequest lotteryThemeInquireRequest);

    long queryPageCount(@Param("lotteryThemeRequest") LotteryThemeInquireRequest lotteryThemeInquireRequest);

    LotteryTheme queryByPromotionCode(@Param("lottery") LotteryThemRestRequest lotteryThemRestRequest);

    Long insertSelective(LotteryTheme lotteryThemRestRequest);
}